first:
	gcc client1.c -o client1
	gcc server1.c -o server1
second:
	gcc client2.c -o client2
	gcc server2.c -o server2

#第3个小程序
thirdly:client3 server3
client3.o:client3.c
server3.o:server3.c



#第4个小程序
fourshly:client4 server4
client4.o:client4.c
server4.o:server4.c

date:getdate
getdate.o:getdate.c

date_udp:getdateUdp
getdateUdp.o:getdateUdp.c

name:getname
getname.o:getname.c

select_one:select1
select1.o:select1.c	

select_two:select2
select2.o:select2.c

UDP_exe:udpClient udpServer
udpClient.o:udpClient.c
udpServer.o:udpServer.c

thread_sock:thread_sock_recv thread_sock_send
thread_sock_recv:thread_socket_recv.c
	gcc thread_socket_recv.c -o thread_sock_recv
thread_sock_send:thread_socket.c
	gcc thread_socket.c -o thread_sock_send

udp_thread:udpServer_thread udpClient_thread
udpServer_thread:udpServer_thread2.c
	gcc udpServer_thread2.c -o udpServer_thread -lpthread
udpClient_thread:udpClient_thread.c
	gcc udpClient_thread.c -o udpClient_thread -lpthread


clean:
	rm -f client[0-9] server[0-9] *.o getdate getdateUdp getname select[0-9] udpServer udpClient thread_sock_recv thread_sock_send
